require('../util/util')
const logger = require('log4js').getLogger()
const Wechat = require('../util/Wechat')

var wechat = Wechat({
    // AppID: 'wx59f13ba18bf0b25c',
    // AppSecret: 'cff75d36bc59d38ab1e1496ac946efed'

    //AppID: 'wxae9c0d778b917c56',
    //AppSecret: 'fd68e9e7d03cdd3ff105552594b05b8b'

    // AppID: 'wx9725aecca23583dd',
    // AppSecret: '22146690740cf653f38c1093ddbfdcb1'

    AppID: 'wx226c3c9557c44304',
    AppSecret: '8bff6155d050947d06bf7802e69f4acb'
})

// wechat.gettoken().then(result => {
    //wechat.messageCustomSend({
    //   touser: 'oh6S-uFM_1Qd1b0LHaOHa3-20q2Y',
    //  msgtype: 'text',
    //  content: 'test'
    //}).then(result => {
    //   log(result)
    //}, result => {
    //  log(result)
    //})
    // wechat.qrcodeCreate({
    //     scene_id: 2
    // }).then(result => {
    //     log(result)
    // })
// })

wechat.menuCreate().then(result =>{
    logger.debug('[' + __filename + ':' + __line + ']', result)
}, result => {
    logger.error('[' + __filename + ':' + __line + ']', result)
})